package com.springboot.transactional.springboot_ransactional.repository;

import com.springboot.transactional.springboot_ransactional.entity.C;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 吴金辉
 * Date: 2018-07-08
 * Time: 13:57
 */
public interface CRepository extends JpaRepository<C, Long> {
    C getById(Long id);
    List<C> getByCn(String cn);
  //  List<C> queryByCnIsLike(String cn);

  //  List<C> saveAll(List<C> list);
}
